﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;

namespace NetCoreMvcTest.Models
{
    public class TestMethodGet
    {
        public object ToObject(Type objectType, string jsonSerializer)
        {
            return null;
        }

        public T ToObject<T>(string jsonSerializer) {
            return default;
        }

        public object ToObject(Type objectType) {
            return null;
        }

        public T ToObject<T>() {
            return default;
        }
    }

    public static class MyTestGetMethod
    {
        public static void Test() {
            var method = typeof(TestMethodGet).GetMethod("ToObject", Array.Empty<Type>());
        }
    }
}
